﻿using commonFramwork.LogHelp;
using EF.Framework.Entity;
using EF.Framework.Model;
using Myu.BLL.RedisHelper;
using Myu.Interface.InterFace;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace My.BLL.Base
{
    /// <summary>
    /// 
    /// </summary>
    public class BaseRedisService
    {

        /// <summary>
        /// 获取key的值
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="key"></param>
        /// <returns></returns>
        protected T check<T>(string key)
        {
            return default(T);
            //var result = RedisHelper.GetCache<T>(key);
            //if (result != null)
            //{
            //    return result;
            //}
            //else
            //{
            //    return default(T);
            //}
        }


        /// <summary>
        /// 保存缓存信息
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="key"></param>
        /// <param name="enty"></param>
        protected void savecache<T>(string key, T enty)
        {
            //RedisHelper.SaveCache<T>(key, enty);
        }


     
    }
}
